package com.lanou.tk.tourism.activity;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.TextView;

import com.lanou.tk.tourism.R;

/**
 * Created by dllo on 15/10/29.
 */
public class RecommendTotalWeb extends Activity implements View.OnClickListener {
    private WebView total_Web;
    private Button total_Web_back;
    private TextView total_Web_Tv;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.web_total_recommend);


        total_Web = (WebView) findViewById(R.id.total_Web);
        total_Web_Tv = (TextView) findViewById(R.id.total_Web_Tv);
        total_Web_back = (Button) findViewById(R.id.total_Web_Back);
        total_Web_back.setOnClickListener(this);

        initView();
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.total_Web_Back:
                Intent intent = new Intent(this, RecommendTotalBtn.class);
                startActivity(intent);
                finish();

                break;

        }

    }

    public void initView(){
        Intent intent = getIntent();
        String url = intent.getStringExtra("url");
        String title = intent.getStringExtra("title");
        total_Web.loadUrl(url);
        total_Web_Tv.setText(title);



    }


}
